package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

/**
 * Created by 18702 on 2017/12/15.
 */
public interface IUserService {
   ServerResponse<User> login(String username, String password);

   ServerResponse<String> register(User user);

   ServerResponse<String> checkValid(String str ,String type);

   ServerResponse selectQuestion(String username);

   ServerResponse<String> checkAnswer(String usernma ,String password , String answer);

   ServerResponse<String> forgetRestPassword(String username,String passwordNew,String forgetToken);

   ServerResponse<String> resetPassword(String passowrdOld,String passwordNew,User user);

   ServerResponse<User> updateInformation(User user);

   ServerResponse<User> getinformation(int userId);

   ServerResponse checkAdminRole(User user);
}
